package c.h.a.z;

import c.b.a.a.a;
import c.h.a.d0.d;
import com.liuzh.deviceinfo.card.PercentCardGroup;
import java.util.Locale;

/* compiled from: lambda */
public final /* synthetic */ class p implements Runnable {
    public final /* synthetic */ PercentCardGroup a;

    public /* synthetic */ p(PercentCardGroup percentCardGroup) {
        this.a = percentCardGroup;
    }

    public final void run() {
        PercentCardGroup percentCardGroup = this.a;
        int i = PercentCardGroup.d;
        d dVar = new d(percentCardGroup.getContext());
        dVar.c();
        percentCardGroup.a.setPercent((float) (dVar.d / dVar.b));
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(percentCardGroup.getResources().getString(2131690543));
        String str = ": ";
        stringBuilder.append(str);
        Object[] objArr = new Object[]{Double.valueOf(r2)};
        String str2 = "%.1f";
        stringBuilder.append(String.format(Locale.getDefault(), str2, objArr));
        String str3 = " GB";
        stringBuilder.append(str3);
        String stringBuilder2 = stringBuilder.toString();
        StringBuilder stringBuilder3 = new StringBuilder();
        stringBuilder3.append(percentCardGroup.getResources().getString(2131690456));
        stringBuilder3.append(str);
        stringBuilder3.append(String.format(Locale.getDefault(), str2, new Object[]{Double.valueOf(r4)}));
        stringBuilder3.append(str3);
        percentCardGroup.a.setSummary(a.E(stringBuilder2, ",  ", stringBuilder3.toString()));
    }
}
